package tgc.edu.xzy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.xzy.custom.CommonService;
import tgc.edu.xzy.entity.Teacher;
import tgc.edu.xzy.repository.TeacherRepsitory;

@Service
public class TeacherService extends CommonService<Teacher, Integer>{
	@Autowired
	private TeacherRepsitory teacherDao;

	public Teacher login(String username, String password) {
		return teacherDao.findByUsernameAndPassword(username,password);
	}
	
	
}
